lisp/emacs-lisp/cl-macs.el (cl-labels): Fix docstring (bug#77348)
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 30 Mar 2025 04:44:50 +0000 (00:44 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 30 Mar 2025 04:44:50 +0000 (00:44 -0400)
lisp/emacs-lisp/cl-macs.el

index 99c105c7559eb4dc4e8cac8b1f98559ccd0d1f07..8caf2f1eac0c1222844dcc0a98c5e6777a0bc43b 100644 (file)
@@ -2251,9 +2251,10 @@ Like `cl-flet' but the definitions can refer to previous ones.
 (defmacro cl-labels (bindings &rest body)
   "Make local (recursive) function definitions.
 
-BINDINGS is a list of definitions of the form (FUNC ARGLIST BODY...)
-where FUNC is the function name, ARGLIST its arguments, and BODY the
-forms of the function body.
+Each definition can take the form (FUNC EXP) where FUNC is the function
+name, and EXP is an expression that returns the function value to which
+it should be bound, or it can take the more common form (FUNC ARGLIST
+BODY...) which is a shorthand for (FUNC (lambda ARGLIST BODY)).
 
 FUNC is defined in any BODY, as well as FORM, so you can write recursive
 and mutually recursive function definitions.  See Info node